package message;

import java.io.Serializable;
import java.util.Set;
/**
 * "Info" message implements Message interface
 * @author ran
 *
 */
public class Info implements Message,Serializable{
	/**
	 * default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	private String userName;
	private String pass;
	private String email;
	private Set<String> boxesList;
	/**
	 * constructor of class
	 * @param userName
	 * @param pass
	 * @param email
	 * @param boxesList
	 */
	public Info(String userName,String pass,String email,Set<String> boxesList) {
		this.userName = userName;
		this.pass = pass;
		this.email = email;
		this.boxesList = boxesList;
	}
	//getters and setters
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set<String> getBoxesList() {
		return boxesList;
	}

	public void setBoxesList(Set<String> boxesList) {
		this.boxesList = boxesList;
	}

	
	@Override
	public MessageType getType() {
		return MessageType.INFO;
	}
}
